<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
        /* body {
            perspective: 500px;
        } */
        
        .box {
            position: relative;
            width: 300px;
            height: 300px;
            margin: 100px auto;
        }
        
        .box div {
            position: absolute;
            top: 0px;
            left: 0px;
            color: aliceblue;
            text-align: center;
            line-height: 300px;
            width: 100%;
            height: 100%;
            border-radius: 150px;
            font-size: 30px;
            box-shadow: 0px 0px 10px 2px silver;
            transition: all 1s;
        }
        
        .box div:nth-child(1) {
            background-color: pink;
            z-index: 10;
            backface-visibility: hidden;
        }
        
        .box div:nth-child(2) {
            background-color: skyblue;
            transform: rotateY(180deg);
        }
        
        .box:hover div:nth-child(1) {
            transform: rotateY(180deg);
        }
        
        .box:hover div:nth-child(2) {
            transform: rotateY(0deg);
            backface-visibility: hidden;
        }
    </style>
</head>

<body>
    <div class="box">
        <div>伟哥在等你！</div>
        <div>波哥在等你！</div>
    </div>
</body>

</html>